{extend name='common@layout/base' /}
{block name='breadcrumb'}
<div class="nch-breadcrumb-layout">
    <div class="nch-breadcrumb wrapper"><i class="icon-home"></i>
            <span><a href="{$Think.request.base_url}">首页</a></span><span class="arrow">></span>
                <span>{$type_name}</span>
          </div>
  </div>
{/block}
{block name='content'}
<link href="/old/shop/templates/new20160622/css/layout.css" rel="stylesheet" type="text/css">
<div class="nch-container wrapper bfc">
  <div class="left">
    <div class="nch-module nch-module-style01">
      <div class="title">
        <h3>文章分类</h3>
      </div>
      <div class="content">
        <ul class="nch-sidebar-article-class">
          {if(isset($type_list))}
          {foreach $type_list as $val }
              <li><a href="{$Think.request.base_url}{:url('index/article/index',['cate_id'=>$val.id])}">{$val.name}</a></li>
          {/foreach}
          {/if}
        </ul>
      </div>
    </div>
    <div class="nch-module nch-module-style03">
      <div class="title">
        <h3>最新文章</h3>
      </div>
      <div class="content">
        <ul class="nch-sidebar-article-list">
        {if(isset($new_list) && !empty($new_list))}
          {foreach $new_list as $val }
             <li><i></i><a  href="{$val.url|default=url('index/article/detail',['article_id'=>$val.id])}">{$val.title|default=''}</a></li>
          {/foreach}
        {else /}
          <li>没有最新文章</li>
        {/if}
        </ul>
      </div>
    </div>
  </div>
  <div class="right">
    <div class="nch-article-con">
      <div class="title-bar">
        <h3>{$type_name}</h3>
      </div>
            <ul class="nch-article-list">
            {if(isset($article_all) && count($article_all)>0)}
          {foreach $article_all as $val }
                <li><i></i><a  href="{$val.url|default=url('index/article/detail',['article_id'=>$val.id])}">{$val.title|default=''}</a><time>{$val.create_time?date('Y-m-d H:i:s',$val.create_time):''}</time></li>
              {/foreach}
        {else /}
          <li>该分类没有文章</li>
        {/if}
              </ul>
           
    </div> 
    <div class="tc mb20">{$article_all->render()}</div>
  </div>
</div>
{/block}